package com.powerwyx.shortlink.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.powerwyx.shortlink.project.pojo.dto.RecycleBinRecoverDTO;
import com.powerwyx.shortlink.project.pojo.dto.RecycleBinRemoveDTO;
import com.powerwyx.shortlink.project.pojo.dto.RecycleBinSaveDTO;
import com.powerwyx.shortlink.project.pojo.dto.ShortLinkRecycleBinPageDTO;
import com.powerwyx.shortlink.project.pojo.entity.Link;
import com.powerwyx.shortlink.project.pojo.vo.ShortLinkPageVO;

/**
 * @author 王艺锡
 * @version 1.0
 */
public interface RecycleBinService extends IService<Link> {

    /**
     * 添加短链接至回收站
     * @param recycleBinSaveDTO
     */
    void saveRecycleBin(RecycleBinSaveDTO recycleBinSaveDTO);

    /**
     * 将短链接从回收站移出
     * @param recycleBinRecoverDTO
     */
    void recoverRecycleBin(RecycleBinRecoverDTO recycleBinRecoverDTO);

    /**
     * 根据分组进行分页查询回收站中的短链接
     * @param shortLinkRecycleBinPageDTO
     * @return
     */
    IPage<ShortLinkPageVO> shortLinkRecycleBinPage(ShortLinkRecycleBinPageDTO shortLinkRecycleBinPageDTO);


    /**
     * 删除回收站短链接
     * @param recycleBinRemoveDTO
     */
    void removeRecycleBin(RecycleBinRemoveDTO recycleBinRemoveDTO);
}
